import request from "@/utils/request";

export const queryAllClazzApi = (name, begin, end, page = 1, pageSize = 10) => {
  return request.get("/clazzs/list", {
    params: {
      name,
      begin,
      end,
      page,
      pageSize,
    },
  });
};
export const queryClazzByIdApi = (id) => {
  return request.get(`/clazzs/${id}`);
};
export const addClazzApi = (clazz) => request.post("/clazzs", clazz);

export const updateClazzApi = (clazz) => request.put("/clazzs", clazz);

export const delClazzByIdApi = (id) => request.delete(`/clazzs/${id}`);
